package com.huilan.etl.util;


import javax.xml.bind.annotation.*;

/**
 * @author ghy
 * @date 2019-01-04 10:45
 **/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
        name = "",
        propOrder = {"head", "body"}
)
@XmlRootElement(
        name = "Msg"
)
public class MsgType {
    @XmlElement(
            name = "Head",
            required = true
    )
    protected HeadType head;
    @XmlElement(
            name = "Body",
            required = true
    )
    protected Object body;

    public MsgType() {
    }

    public HeadType getHead() {
        return this.head;
    }

    public void setHead(HeadType value) {
        this.head = value;
    }

    public Object getBody() {
        return this.body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "MsgType{head=" + this.head + ", body=" + this.body + '}';
    }
}
